﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ZebraCoreLib;
using ZebraCoreLib.BasBiz;

namespace Web.ZebraUIControls
{
    public class ZebraListZone:ZebraDivZone
    {

        public string ServiceMethod { get; set; }
        public ListFlags ListFlag { get; set; }
        public int PageIndex { get; set; }
        public int PageSize { get; set; }

        public override void RenderControl(HtmlTextWriter writer)
        {
           
            RenderHeader(writer);
            ZebraDataList dataList = new ZebraDataList() { ServiceMethod = this.ServiceMethod};
            dataList.html = this.html;
            dataList.RenderControl(writer);
            RenderFooter(writer);
        }
    }
}
